import request from "@/utils/request.js"

// 获取任务分页列表
export function getTaskListApi(data){
	return request({
		url: '/crm/assignment/page',
		method: 'GET',
		params: data
	})
}
// 新建任务
export function createTaskApi(data){
	return request({
		url: '/crm/assignment/create',
		method: 'POST',
		data:data
	})
}
// 获取任务详情
export function getTaskDetailApi(id){
	return request({
		url: `/crm/assignment/get?id=${id}`,
		method: 'GET'
	})
}